package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.entity.po.Duty;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DutyMapper extends BaseMapper<Duty> {

    /**
     * 查询所有员工值班信息
     * @return
     */
    List<Duty> selectAllDuty();

    /**
     * 根据员工名字进行模糊查询
     * @param name
     * @return
     */
    List<Duty> selectDutyByName(@Param("employeeName") String name);


}